<%@ Page Language="c#" Inherits="PHSRAG.Insight21.COI.DataManagementPage" CodeFile="DataManagementPage.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>COI - Data Management</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />

    <script language="javascript" type="text/javascript">
		function ToggleSelection(triggerer,actOn)
		{
			var triggerer = document.getElementById(triggerer);
			if(triggerer != null && triggerer.checked)
			{
				var element = document.getElementById(actOn);
				if(element != null)
				{
					element.checked=false;
				}
			}
		}
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table class="Container" cellpadding="0">
            <tr>
                <td>
                    <table cellspacing="0" width="100%">
                        <tr>
                            <td>
                                <cc1:Header ID="header" runat="server"></cc1:Header>
                            </td>
                        </tr>
                        <tr style="display: none">
                            <td>
                                <cc1:CoISubNavigation ID="coiSubNavigation" runat="server"></cc1:CoISubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:COIAdminSubNavigation ID="coiAdminSubNavigation" runat="server"></cc1:COIAdminSubNavigation>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:BreadCrumb ID="breadCrumb" runat="server" HighlightCurrentPage="true"></cc2:BreadCrumb>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="10" cellpadding="10" width="100%" style="background-color:#ffffff">
                        <tr>
                            <td style="width:100%">
                                <cc2:ExpandingPanel ID="helpContainer" runat="server" ExpansionToggler="instructionToggler">
                                    <StaticTemplate>
                                        <table class="Search">
                                            <tr>
                                                <td>
                                                    <cc2:ExpansionToggler ID="instructionToggler" runat="Server" ExpandedImage="~/Images/Arrow_DN.gif"
                                                        CollapsedImage="~/Images/Arrow_RT.gif" ExpandedLinkCaption="Hide Instructions"
                                                        CollapsedLinkCaption="Show Instructions"></cc2:ExpansionToggler>
                                                </td>
                                            </tr>
                                        </table>
                                    </StaticTemplate>
                                    <DynamicTemplate>
                                        <table class="SearchDynamic">
                                            <tr>
                                                <td>
                                                    Items you see here have already been added to the database at the time the submitter
                                                    was filling out their COI.&nbsp;&nbsp;Make sure the spelling is accurate and that
                                                    there is not a duplicate item.&nbsp;&nbsp;Then check <span style="color: #c46606; font-weight: bold;">Accept</span>
                                                    to keep this item available for others to use in the future.&nbsp;&nbsp;Check 
                                                    <span style="color: #c46606; font-weight: bold;">Reject</span> to prevent this item from being used in the future.&nbsp;&nbsp;Then
                                                    click the <span style="color: #c46606; font-weight: bold;">Update button</span> to save your changes.
                                                </td>
                                            </tr>
                                        </table>
                                    </DynamicTemplate>
                                </cc2:ExpandingPanel>
                            </td>
                        </tr>
                    </table>
                    <table class="Invisible" cellspacing="10" id="dynamicTable">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" ContainerID="dynamicTable" runat="server">
                                </cc2:ActivityIndicator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                    </table>
                    <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                    <asp:Panel ID="gridContainer" runat="server">
                        <table class="PlaceBar" width="100%">
                            <tr>
                                <td class="PageName">
                                    Data Management |
                                    <asp:Label ID="recordCount" runat="server"></asp:Label>&nbsp;Records&nbsp;
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="topPager" runat="server"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <asp:DataGrid ID="listRequestGrid" runat="server" AllowCustomPaging="True" CssClass="DataGrid"
                                        AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" Width="100%"
                                        EnableViewState="true">
                                        <AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
                                        <ItemStyle CssClass="DataGridItem"></ItemStyle>
                                        <HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
                                        <Columns>
                                            <asp:BoundColumn DataField="DateCreated" SortExpression="DateCreated" ReadOnly="True"
                                                HeaderText="Requested On"></asp:BoundColumn>
                                            <asp:BoundColumn DataField="Name" SortExpression="Name" ReadOnly="True" HeaderText="Name">
                                            </asp:BoundColumn>
                                            <asp:BoundColumn DataField="FullName" SortExpression="FullName" ReadOnly="True" HeaderText="Submitter">
                                            </asp:BoundColumn>
                                            <asp:TemplateColumn HeaderText="Accept">
                                                <HeaderStyle Width="5%"></HeaderStyle>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="accept" runat="server" TextAlign="Left"></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                            <asp:TemplateColumn HeaderText="Reject">
                                                <HeaderStyle Width="5%"></HeaderStyle>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="reject" runat="server" TextAlign="Left"></asp:CheckBox>
                                                </ItemTemplate>
                                            </asp:TemplateColumn>
                                        </Columns>
                                        <PagerStyle Visible="false"></PagerStyle>
                                    </asp:DataGrid></td>
                            </tr>
                        </table>
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td>
                                    <cc2:Pager ID="bottomPager" runat="server"></cc2:Pager>
                                </td>
                            </tr>
                        </table>
                        <br />
                        <table cellspacing="0" width="100%">
                            <tr>
                                <td align="right">
                                    <asp:ImageButton ID="updateButton" runat="server" ImageUrl="../Images/b_update.gif">
                                    </asp:ImageButton>&nbsp;</td>
                            </tr>
                        </table>
                        <br />
                    </asp:Panel>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
